package model.purchasing;
// Generated Nov 9, 2012 1:10:43 PM by Hibernate Tools 3.2.1.GA


import java.math.BigDecimal;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * TorderDetail generated by hbm2java
 */
@Entity
//@IdClass(TorderDetailId.class)
@Table(name="torder_detail", schema="purchasing")
public class TorderDetail  implements java.io.Serializable {

    private TorderDetailId id;
    private TorderMst torderMst;
    private Integer hadiahId;
    private BigDecimal qtyCrt;
    private BigDecimal qtyPcs;
    private BigDecimal qtyBonus;
    private BigDecimal price;
    private BigDecimal diskon;
    private BigDecimal ppn;
    private BigDecimal amount;
    private String jenisBonus;
    private Integer fraksi;
    private Integer fraksiBonus;
    private Integer top;
    private String diskonDesc;
    private String bonusDesc;
    private String divOrder;
    private Integer supplierId;
    private Integer leadTime;
    private Integer unitId;
    private Boolean pkp;

    public TorderDetail() {
         this.id = new TorderDetailId();
    }

   @EmbeddedId
   @AttributeOverrides( {
        @AttributeOverride(name="id", column=@Column(name="id", nullable=false) ), 
        @AttributeOverride(name="item_id", column=@Column(name="item_id", nullable=false) ) } )
    public TorderDetailId getId() {
        return this.id;
    }
    
    public void setId(TorderDetailId id) {
        this.id = id;
    }
   
    
    @ManyToOne
    @JoinColumn(name="id", nullable=false, insertable=false, updatable=false)
    @PrimaryKeyJoinColumn
    public TorderMst getTorderMst() {
        return this.torderMst;
    }
   
    public void setTorderMst(TorderMst torderMst) {
        this.torderMst = torderMst;
    }
    
    @Column(name="hadiah_id")
    public Integer getHadiahId() {
        return this.hadiahId;
    }
    
    public void setHadiahId(Integer hadiahId) {
        this.hadiahId = hadiahId;
    }
    
    @Column(name="qty_crt", precision=13)
    public BigDecimal getQtyCrt() {
        return this.qtyCrt;
    }
    
    public void setQtyCrt(BigDecimal qtyCrt) {
        this.qtyCrt = qtyCrt;
    }
    
    @Column(name="qty_pcs", precision=13)
    public BigDecimal getQtyPcs() {
        return this.qtyPcs;
    }
    
    public void setQtyPcs(BigDecimal qtyPcs) {
        this.qtyPcs = qtyPcs;
    }
    
    @Column(name="qty_bonus", precision=13)
    public BigDecimal getQtyBonus() {
        return this.qtyBonus;
    }
    
    public void setQtyBonus(BigDecimal qtyBonus) {
        this.qtyBonus = qtyBonus;
    }
    
    @Column(name="price", precision=13)
    public BigDecimal getPrice() {
        return this.price;
    }
    
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    
    @Column(name="diskon", precision=13, scale=3)
    public BigDecimal getDiskon() {
        return this.diskon;
    }
    
    public void setDiskon(BigDecimal diskon) {
        this.diskon = diskon;
    }
    
    @Column(name="ppn", precision=13, scale=3)
    public BigDecimal getPpn() {
        return this.ppn;
    }
    
    public void setPpn(BigDecimal ppn) {
        this.ppn = ppn;
    }
    
    @Column(name="amount", precision=13)
    public BigDecimal getAmount() {
        return this.amount;
    }
    
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    
    @Column(name="jenis_bonus", length=100)
    public String getJenisBonus() {
        return this.jenisBonus;
    }
    
    public void setJenisBonus(String jenisBonus) {
        this.jenisBonus = jenisBonus;
    }
    
    @Column(name="fraksi")
    public Integer getFraksi() {
        return this.fraksi;
    }
    
    public void setFraksi(Integer fraksi) {
        this.fraksi = fraksi;
    }
    
    @Column(name="fraksi_bonus")
    public Integer getFraksiBonus() {
        return this.fraksiBonus;
    }
    
    public void setFraksiBonus(Integer fraksiBonus) {
        this.fraksiBonus = fraksiBonus;
    }
    
    @Column(name="top")
    public Integer getTop() {
        return this.top;
    }
    
    public void setTop(Integer top) {
        this.top = top;
    }
    
    @Column(name="diskon_desc", length=100)
    public String getDiskonDesc() {
        return this.diskonDesc;
    }
    
    public void setDiskonDesc(String diskonDesc) {
        this.diskonDesc = diskonDesc;
    }
    
    @Column(name="bonus_desc", length=100)
    public String getBonusDesc() {
        return this.bonusDesc;
    }
    
    public void setBonusDesc(String bonusDesc) {
        this.bonusDesc = bonusDesc;
    }
    
    @Column(name="div_order", length=100)
    public String getDivOrder() {
        return this.divOrder;
    }
    
    public void setDivOrder(String divOrder) {
        this.divOrder = divOrder;
    }
    
    @Column(name="supplier_id", length=100)
    public Integer getSupplierId() {
        return this.supplierId;
    }
    
    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }
    
    @Column(name="pkp", length=100)
    public Boolean getPkp() {
        return this.pkp;
    }
    
    public void setPkp(Boolean pkp) {
        this.pkp = pkp;
    }

    @Column(name="lead_time")
    public Integer getLeadTime() {
        return leadTime;
    }

    public void setLeadTime(Integer leadTime) {
        this.leadTime = leadTime;
    }

    @Column(name="unit_id")
    public Integer getUnitId() {
        return unitId;
    }

    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    

}


